Skip to content

fix(ViewHelper) create a new helper in case controller wasn't used #375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2015
Merged

fix(ViewHelper) create a new helper in case controller wasn't used #375

merged 1 commit into from
Oct 21, 2015

Conversation

rmosolgo
Copy link
Member

Turns out there are some cases where the view helper will be used without the Rails controller lifecycle:

  • view tests (Rspec or ActionView::TestCase)
  • the cells gem

In these cases, fall back to a plain instantiation of the helper implementation. (No setup or teardown in this case)

Also:

  • Move Capybara tests to ReactRailsUJSTest since they're really testing the UJS, not the ViewHelper

This was referenced Oct 17, 2015
rmosolgo pushed a commit that referenced this pull request Oct 21, 2015
fix(ViewHelper) create a new helper in case controller wasn't used
@rmosolgo rmosolgo merged commit 092fc13 into reactjs:master Oct 21, 2015
@rmosolgo rmosolgo deleted the fallback-view-helper branch October 21, 2015 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants